<template>
  <div style="padding: 24px">
    <TemplateList :list="templateList" />
  </div>
</template>

<script setup lang="ts">
import { ref } from 'vue';
import TemplateList from './component/TemplateList.vue';
import { getHomeTemplateList, ITemplateItem } from '../../http/api';

const templateList = ref<ITemplateItem[]>([]);
getHomeTemplateList().then((data) => {
  templateList.value = data;
});
</script>
